package com.zros.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 线索课程关系表
 * </p>
 *
 * @author pangyinqiang
 * @since 2019-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_rel_clue_cour")
@ApiModel(value="ClueCour对象", description="线索课程关系表")
public class ClueCour extends Model<ClueCour> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "rel_id", type = IdType.ID_WORKER)
    private Long relId;

    @ApiModelProperty(value = "线索id")
    private Long clueId;

    @ApiModelProperty(value = "课程id")
    private Long courseId;
    
    //线索列表咨询课程列表转换名字使用
    @TableField(exist = false)
    private String courseName;
    
    @ApiModelProperty(value = "创建者")
    private Long creator;

    @ApiModelProperty(value = "创建记录时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    private Long operator;

    @ApiModelProperty(value = "更新记录时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记 0:未删除 1:已删除")
    @TableLogic
    private String delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.relId;
    }


	public static long getSerialversionuid() {
		return serialVersionUID;
	}
    
    

}
